package ebcs.database.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ebcs.database.bean.BsContractInfor;
import ebcs.database.mybatis.dao.BsContractInforMapper;
import ebcs.database.service.BsContractInforServiceImp;

@Service
public class BsContractInforServiceImpl implements BsContractInforServiceImp {

	@Autowired
    private BsContractInforMapper bsContractInforMapper;
	
	@Override
	public List<BsContractInfor> searchContractInfor() {
		// TODO Auto-generated method stub
		return bsContractInforMapper.searchContractInfor();
	}

	@Override
	public void insertContractInfor(List<BsContractInfor> list) {
		// TODO Auto-generated method stub
		bsContractInforMapper.insertContractInfor(list);
	}

	@Override
	public List<BsContractInfor> searchContractInfors(BsContractInfor req) {
		// TODO Auto-generated method stub
		return bsContractInforMapper.searchContractInfors(req);
	}

	@Override
	public int searchContractInforPageCount(BsContractInfor req) {
		// TODO Auto-generated method stub
		return bsContractInforMapper.searchContractInforPageCount(req);
	}

	@Override
	public int deleteContract(BsContractInfor req) {
		// TODO Auto-generated method stub
		return bsContractInforMapper.deleteContract(req);
	}

	@Override
	public BsContractInfor selectContractIdByContractNo(BsContractInfor req) {
		// TODO Auto-generated method stub
		return bsContractInforMapper.selectContractIdByContractNo(req);
	}

}
